/**
 * Mocha Plugins Enhanced Class
 * capsuled some 3rd party plugins into unified format
 */

MUI.extend({
    mooRatings: function(arg){
        new MUI.Require({
             js: ['../'+MUI.path.plugins + 'mooRating/mooRatings-1.1.js'],
            css: ['../'+MUI.path.plugins + 'mooRating/mooRatings.css'],
            onload: function(){
                new mooRatings(arg);
            }
        });
    }
});

MUI.extend({
	mooElementScroller: function(arg){
        new MUI.Require({
             js: ['../'+MUI.path.plugins + 'mooElementScroller/mooElementScroller.js'],
            css: ['../'+MUI.path.plugins + 'mooElementScroller/style.css'],
            onload: function(){
                new mooElementScroller(arg);
            }
        });
    }
});

MUI.extend({
	DynamicTextarea: function(arg){
        new MUI.Require({
            js: ['../'+MUI.path.plugins + 'dynamicTextarea/DynamicTextarea.js'],
            onload: function(){
                new DynamicTextarea(arg);
            }
        });
    }
});